package com.company.mvvm;

import android.content.Context;

import com.company.network.base.INetWorkRequestInfo;

public class NetWorkInfo implements INetWorkRequestInfo {

    private Context context;

    public NetWorkInfo(Context context) {
        this.context = context;
    }

    @Override
    public String getAppVersionName() {
        return BuildConfig.VERSION_NAME;
    }

    @Override
    public String getAppVersionCode() {
        return String.valueOf(BuildConfig.VERSION_CODE);
    }

    @Override
    public boolean isDebug() {
        return BuildConfig.DEBUG;
    }

    @Override
    public Context getApplicationContext() {
        return context;
    }
}
